package org.dromara.demo.designPattern.观察者模式.event;

import org.dromara.demo.designPattern.观察者模式.entity.LotteryResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 短信事件
 */
public class MessageEventListener implements EventListener{
    private Logger logger =
            LoggerFactory.getLogger(MessageEventListener.class);
    @Override
    public void doEvent(LotteryResult result) {
        logger.info("给用户 {} 发送短信通知(短信)：{}",
                result.getUid(), result.getMsg());
    }
}
